(function (window, undefined) {
    class Father {
        constructor(parent, option) {
            for (let k in option) {
                this[k] = option[k]
            }
            this.parent = parent
        }
        render (box) {
            const ele = document.createElement("div")
            ele.style.backgroundColor = this.color
            ele.style.width = this.width + "px"
            ele.style.height = this.height + "px"

            box.push(ele)
            this.parent.appendChild(ele)
        }
    }

    window.Father = Father
})(window, undefined)